package com.amit.Basic_Simple_Program;

public class Minimum_Element_Array {

	public static void main(String[] args) 
	{

		int a[]={12,0,56,-1,34,77,9,-1111};
		int min=a[0];
		
		for(int i=0;i<a.length;i++)
		{
			if(a[i]<min)
			{
				min=a[i];
			}
		}
		
		System.out.println("Min element in array "+min);
		
	}

}
